package Q1;

import java.util.Scanner;

public class Main2 {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        int n = scanner.nextInt();
        int[] nums = new int[n];
        for (int i = 0; i < n; i++) {
            nums[i] = i + 1;
        }

        int[] arr = new int[n];
        arr[0] = 1;
        for (int i = 1; i < n; i++) {
            if (i + 1 < n) {
                arr[i] = nums[i + 1];
                arr[i + 1] = nums[i];
            }
            i++;
        }

        if (n % 2 == 0) {
            arr[n - 1] = n;
        }

        for (int i : arr) {
            System.out.print(i + " ");
        }
    }
}
